package com.grupoconstruobras.sigo.security.auth.data;

import com.grupoconstruobras.sigo.security.audit.AuditorEntityListener;
import com.grupoconstruobras.sigo.security.audit.data.GeneratorIdentifierAuditEntity;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


@EntityListeners(AuditorEntityListener.class)
@Entity
@Table(name = "relacionrolrecursofuncionalidad", schema = "seguridad")
@AttributeOverrides({ @AttributeOverride(name = "id", column = @Column(name = "idrelacionrolrecursofuncionalidad")) })
@SequenceGenerator(name = "simple_identifier", schema = "seguridad", sequenceName = "relacionrolrecursofuncionalid_idrelacionrolrecursofuncional_seq", initialValue = 1, allocationSize = 1)
public class Relacionrolrecursofuncionalidad extends GeneratorIdentifierAuditEntity<Long, Relacionrolrecursofuncionalidad> implements Serializable {
	private static final long serialVersionUID = 1L;

	@Basic(optional=true)
	@Column(name="cargar", nullable=true, length=1)
	private String cargar;

	@Basic(optional=true)
	@Column(name="crear", nullable=true, length=1)
	private String crear;

	@Basic(optional=true)
	@Column(name="descargar", nullable=true, length=1)
	private String descargar;

	@Basic(optional=true)
	@Column(name="eliminar", nullable=true, length=1)
	private String eliminar;

	@Basic(optional=true)
	@Column(name="modificar", nullable=true, length=1)
	private String modificar;

	@Basic(optional=true)
	@Column(name="reporte", nullable=true, length=1)
	private String reporte;

	@Basic(optional=true)
	@Column(name="ver", nullable=true, length=1)
	private String ver;

	//bi-directional many-to-one association to Recurso
	@ManyToOne
	@JoinColumn(name="idrecurso")
	private Recurso recurso;

	//bi-directional many-to-one association to Rol
	@ManyToOne
	@JoinColumn(name="idrol")
	private Rol rol;

	public Relacionrolrecursofuncionalidad() {
	}

	

	public String getCargar() {
		return this.cargar;
	}

	public void setCargar(String cargar) {
		this.cargar = cargar;
	}

	public String getCrear() {
		return this.crear;
	}

	public void setCrear(String crear) {
		this.crear = crear;
	}

	public String getDescargar() {
		return this.descargar;
	}

	public void setDescargar(String descargar) {
		this.descargar = descargar;
	}

	public String getEliminar() {
		return this.eliminar;
	}

	public void setEliminar(String eliminar) {
		this.eliminar = eliminar;
	}

	

	public String getModificar() {
		return this.modificar;
	}

	public void setModificar(String modificar) {
		this.modificar = modificar;
	}

	public String getReporte() {
		return this.reporte;
	}

	public void setReporte(String reporte) {
		this.reporte = reporte;
	}

	
	public String getVer() {
		return this.ver;
	}

	public void setVer(String ver) {
		this.ver = ver;
	}

	public Recurso getRecurso() {
		return this.recurso;
	}

	public void setRecurso(Recurso recurso) {
		this.recurso = recurso;
	}

	public Rol getRol() {
		return this.rol;
	}

	public void setRol(Rol rol) {
		this.rol = rol;
	}

}